from sqlalchemy import Column, Integer, String, DateTime
from utils.database import Base
from datetime import datetime


class Work(Base):
    """
    参数配置表
    """
    __tablename__ = 'work'
 
    work_id = Column(Integer, primary_key=True, autoincrement=True, comment='参数主键')
    work_cat = Column(Integer, default=0, comment="展品分类ID")
    work_url = Column(String(200), nullable=True, default='', comment='展品图片地址')
    work_name = Column(String(200), nullable=True, default='', comment='展品名称')
    create_by = Column(String(64), nullable=True, default='', comment='创建者')
    create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
    update_by = Column(String(64), nullable=True, default='', comment='更新者')
    update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
    remark = Column(String(500), nullable=True, default='', comment='备注')
    